package com.agileplex.products.acc.results;

import java.io.PrintWriter;

/**
 * Command execute result.
 *
 * @creator Rui Tang
 * @date 2008-06-15
 *
 * @LastChanged
 * @LastChangedBy $LastChangedBy: tangrui@agileplex.com $
 * @LastChangedDate $LastChangedDate: 2008-06-22 07:06:47 +0000 (Sun, 22 Jun 2008) $
 * @LastChangedRevision $LastChangedRevision: 6 $
 */
public class CommandResult implements ICommandResult {

    private Object result;

    public CommandResult() {	
    }
    
    public CommandResult(Object result) {
        this.result = result;
    }

    public Object getInnerResult() {
        return this.result;
    }

    public void print(PrintWriter writer) {
        if (this.result != null) {
            writer.println(this.result);
        }
    }

}
